package com.ruan.service;

import com.ruan.dao.RoleMapper;
import com.ruan.pojo.Role;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName:RoleService
 * @Author:阮昇
 * @Description:
 * @Datetime: 2023/6/14 15:25
 **/
@Service
public class RoleService {

    @Autowired
    private RoleMapper roleMapper;

    public Role getRoleById(Integer id) {

        return roleMapper.getRoleById(id);

    }

    public List<Role> getRoleList() {
        return roleMapper.getRoleList();
    }
}
